﻿<div>
    <script type="text/javascript">
        var clickMe = function () {
            alert("Thank you very much for your click!!");
        }
    </script>

    @{
         Html.Bop().Button()
                   .Text("Click Me")
                   .ClientEvents(e => e.Add().Register(EventNames.OnClick, "clickMe();"))
                   .Render();
    }
</div>